from requests import session

from api.login_register import Login
from config import URLPATH


class RealNameAuth:
    def real_name_authentication(self, session, realname, card_id):
        return session.post(url=f'{URLPATH}/member/realname/approverealname',
                          data={'realname':realname, 'card_id':card_id})




if __name__ == '__main__':
    realName = RealNameAuth()
    login = Login()
    Session = session()
    login.login_data(Session, '13800000002', '123456')
    print(realName.real_name_authentication(Session,'小米','123456789123456789').text)
